package com.chow;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import java.util.List;

/**
 * @author 周麟东 on 15:07
 * mojo插件的类型
 */
@Mojo(name = "chow" , defaultPhase = LifecyclePhase.PACKAGE)
public class ChowMojo extends AbstractMojo{
    @Parameter
    private String msg;

    @Parameter
    private List<String> options;

    public void execute() throws MojoExecutionException, MojoFailureException {
        System.out.println("周麟东插件准备完成aaaaaa:"+msg);
        System.out.println("周麟东插件准备完成aaaaaa:"+options);

    }
}
